import { deleteRequest, downPostRequest, getRequest, postRequest, putRequest, getRequestRestFul } from '@/common/config/request';
import { SYS_BASE_URL } from "@/common/constant/Const";

export const resourcesListPaging = (data) =>{
    return postRequest(SYS_BASE_URL + "/api/resource/list-paging",data);
}

export const updateResources = (data) =>{
    return postRequest(SYS_BASE_URL + "/api/resource/update",data);
}

export const createResources = (data) =>{
    return postRequest(SYS_BASE_URL + "/api/resource/save",data);
}

export const deleteResources = (data) =>{
    return deleteRequest(SYS_BASE_URL + "/api/resource/delete",data);
}